package com.ly.test.service.impl;/**
 * Created by Administrator on 2017/1/16.
 */

import com.ly.test.bean.User;
import com.ly.test.dao.UserDao;
import com.ly.test.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

/**
 * @author liuyi
 * @date 2017/01/16 16:09
 */
@Service("userService")
public class UserServiceImpl implements UserService {

    @Autowired
    private UserDao userDao;

    @Value("${jdbc.driver}")
//    @Value("${server.port}")
    private String value;

    @Override
    public User getUserById(Long id) {
        User u = new User();
        u.setId(id);
        return userDao.get(u);
//        u.setName(value);
//        return u;
    }

}
